import me.tongfei.progressbar.ProgressBar;

public class ProgressBarExample {

    public static void main(String[] args) {
        // Create a progress bar with a specific task name and number of steps
        try (ProgressBar progressBar = new ProgressBar("Task", 100)) {
            // Perform some task
            for (int i = 0; i < 100; i++) {
                // Simulate some work
                Thread.sleep(50);
                // Update the progress bar
                progressBar.step();
            }
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
